home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11191 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: ix.netcom.com!netnews
  2. From: lewkbj@ix.netcom.com(leonel wizel )
  3. Newsgroups: comp.lang.c++
  4. Subject: I need help please
  5. Date: 13 Mar 1996 04:05:34 GMT
  6. Organization: Netcom
  7. Message-ID: <4i5hie$c51@cloner3.netcom.com>
  8. NNTP-Posting-Host: ix-nyc10-10.ix.netcom.com
  9. X-NETCOM-Date: Tue Mar 12  8:05:34 PM PST 1996
  10.  
  11.         
  12.  
  13.  
  14.     I am new to the c++ programming language.  I need some help from
  15. some of you that are already gurus in this programming language please.
  16.  
  17.  
  18.     I need to write three programs and I don't have any idea how to
  19. start.
  20.  
  21.  
  22.     the programs are:
  23.  
  24.     
  25.     write a program using palindrome strings:
  26.  
  27. (1)
  28.     I have to write a recursive function TESTPALINDROME that returns
  29. "1" if the string stored in the array is palindrome, and "0" otherwise.
  30.  
  31.     I need some hints please.
  32.  
  33.  
  34. program No. (2)
  35.  
  36.     write a C++ program that inputs a numeric check amount and writes
  37. the word equivalent of the amount.  For example, the amount 112.43
  38. should be written as
  39.  
  40.     ONE HUNDRED TWELVE AND 43/100
  41.  
  42. program No. (3)
  43.  
  44.     write a c++ program that creates a class called RATIONAL for
  45. performing arithmetic with fractions.  I have to write a driver to test
  46. my classes.
  47.  
  48.     I have to provide a constructor function that enables an object of
  49. this class to be initialized when it is declared.  The constructor
  50. should contain default values in case no initializers are provided and
  51. should store the fraction in reduced form (i.e., the fraction)
  52.  
  53.     2/4
  54.  
  55.     should be stored in the object as 1 in the numerator and 2 in the
  56. denominator).  provide public members functions for each of the
  57. following.
  58.  
  59.     addition, substraction, multiplication, division of two rational
  60. numbers.  result should be stored in reduced form.
  61.  
  62.     and then.
  63.  
  64.     printing rational numbers in the form a/b where a is the numerator
  65. and b is the denominator.\
  66.  
  67.     printing rational numbers in floating point format.
  68.  
  69.  
  70.     Please I need some help with these three programs.  I do not know
  71. how to start.  I need some hints please.
  72.  
  73.  
  74. thank you for your cooperation
  75.  
  76.     
  77.